package com.tjmc.company.api.feign;

import com.tjmc.company.api.entity.AutoRefreshLogEntity;
import com.tjmc.company.api.entity.JobInfoEntity;
import com.tjmc.recruit.common.core.constant.SecurityConstants;
import com.tjmc.recruit.common.core.constant.ServiceNameConstants;
import com.tjmc.recruit.common.core.util.R;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestHeader;

import java.util.List;

@FeignClient(contextId = "autoRefreshService", value = ServiceNameConstants.COMPANY_SERVICE)
public interface AutoRefreshService {
    /**
     * 查询企业职位列表
     *
     * @return
     */
    @GetMapping("/autoRefreshLog")
    R<Boolean> save(@RequestBody AutoRefreshLogEntity autoRefreshLog, @RequestHeader(SecurityConstants.FROM) String from);

    @GetMapping("/autoRefreshLog/getDayCount")
    R<Integer> getDayCount(@RequestBody AutoRefreshLogEntity autoRefreshLog, @RequestHeader(SecurityConstants.FROM) String from);
}
